package ee.ttu.lecturerate.http;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class RequestInput
{
	private int type;
	private String url;
	private List<NameValuePair> params;
	
	public RequestInput()
	{
		type = 0;
		url = null;
		params = new ArrayList<NameValuePair>();
	}
	
	public void addParameter(String key, String value) {
		params.add(new BasicNameValuePair(key, value));
	}
	
	public List<NameValuePair> getParameters() {
		return params;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
